<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Youth-Admin</title>
    <!-- zui css -->
    <link rel="stylesheet" href="/static/dist/css/zui.min.css">
    <link rel="stylesheet" href="/static/dist/theme/blue.css">
    <!-- app css -->
    <link rel="stylesheet" href="/static/css/app.css">
    <link rel="stylesheet" src="../static/markdown/css/editormd.css" />
    <!-- jquery js -->
    <script src="/static/dist/lib/jquery/jquery.js"></script>

</head>
<body>
<div class="wrapper">
    <header class="main-header">
        <nav class="navbar navbar-fixed-top bg-primary">
            <div class="navbar-header">
                <a class="navbar-toggle" href="javascript:;" data-toggle="collapse" data-target=".navbar-collapse"><i class="icon icon-th-large"></i></a>
                <a class="sidebar-toggle" href="javascript:;" data-toggle="push-menu"><i class="icon icon-bars"></i></a>
                <a class="navbar-brand" href="#">
                    <span class="logo">YouthAdmin</span>
                    <span class="logo-mini">YA</span>
                </a>
            </div>
            <div class="collapse navbar-collapse">
                <div class="container-fluid">
                    <ul class="nav navbar-nav">
                        <li><a href="javascript:;" data-toggle="push-menu"><i class="icon icon-bars"></i></a></li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            <a href="javascript:;">
                                    <span>
                                        <i class="icon icon-bell-alt"></i>
                                        <span class="label label-danger label-pill up">5</span>
                                    </span>
                            </a>
                        </li>
                        <li>
                            <a href="javascript:;">
                                    <span>
                                        <i class="icon icon-envelope-alt"></i>
                                        <span class="label label-success label-pill up">2</span>
                                    </span>
                            </a>
                        </li>
                        <li class="dropdown">
                            <a href="javascript:;" data-toggle="dropdown"><i class="icon icon-user"></i> 管理员 <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                <li><a href="#">资料设置</a></li>
                                <li><a href="#">清除缓存</a></li>
                                <li class="divider"></li>
                                <li><a href="/logout">注销</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </header>
    <aside class="main-sidebar">
        <section class="sidebar">
            <ul class="sidebar-menu" data-widget="tree">
                <li class="header">主要菜单</li>
                <li class="active">
                    <a href="/admin/indexBoard" b-href="true">
                        <i class="icon icon-dashboard"></i>
                        <span>仪表盘</span>
                        <span class="pull-right-container">
                            </span>
                    </a>
                </li>
                <li class="treeview">
                    <a href="javascript:;">
                        <i class="icon icon-file"></i>
                        <span>页面演示</span>
                        <span class="pull-right-container">
                                <i class="icon icon-angle-left"></i>
                            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="/admin/markdown.html" b-href="true"><i class="icon icon-circle-blank"></i> Markdown</a></li>
                        <li><a href="/admin/layout.html" b-href="true"><i class="icon icon-circle-blank"></i> 空白页</a></li>
                        <%--<li><a href="login.html"><i class="icon icon-circle-blank"></i> 登录</a></li>--%>
                        <%--<li><a href="error-404.html"><i class="icon icon-circle-blank"></i> 404页</a></li>--%>
                        <li><a href="/admin/config.html" b-href="true"><i class="icon icon-circle-blank"></i> 系统设置</a></li>
                        <li><a href="/admin/list.html" b-href="true"><i class="icon icon-circle-blank"></i> 用户列表</a></li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="javascript:;">
                        <i class="icon icon-columns"></i>
                        <span>基础组件</span>
                        <span class="pull-right-container">
                                <i class="icon icon-angle-left"></i>
                            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="/admin/component-checkbox-radio.html" b-href="true"><i class="icon icon-circle-blank"></i> 多选和单选框</a></li>
                        <li><a href="/admin/component-step.html" b-href="true"><i class="icon icon-circle-blank"></i> 步骤条</a></li>
                        <li><a href="/admin/btn-group.html" b-href="true"><i class="icon icon-circle-blank"></i> 按钮组</a></li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="javascript:;">
                        <i class="icon icon-database"></i>
                        <span>数据组件</span>
                        <span class="pull-right-container">
                                <i class="icon icon-angle-left"></i>
                            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="/admin/datagrid.html" b-href="true"><i class="icon icon-circle-blank"></i> 数据表格</a></li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="javascript:;">
                        <i class="icon icon-sign-blank"></i>
                        <span>扩展插件</span>
                        <span class="pull-right-container">
                                <i class="icon icon-angle-left"></i>
                            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="/admin/plugin-toastr.html" b-href="true"><i class="icon icon-circle-blank"></i> Toastr</a></li>
                        <li><a href="/admin/plugin-notify.html" b-href="true"><i class="icon icon-circle-blank"></i> Notify</a></li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="javascript:;">
                        <i class="icon icon-flag"></i>
                        <span>活动管理</span>
                        <span class="pull-right-container">
                                <i class="icon icon-angle-left"></i>
                            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="/admin/activity/add" b-href="true"><i class="icon icon-circle-blank"></i> 发布活动</a></li>
                        <li><a href="/admin/activity/index" b-href="true"><i class="icon icon-circle-blank"></i> 活动列表</a></li>
                        <li><a href="/admin/activity/type/index" b-href="true"><i class="icon icon-circle-blank"></i> 活动类型</a></li>
                        <li><a href="/admin/plugin-notify.html" b-href="true"><i class="icon icon-circle-blank"></i> 信息统计</a></li>
                        <li><a href="/admin/activity/album/index" b-href="true"><i class="icon icon-circle-blank"></i> 活动相册</a></li>
                        <li><a href="/admin/activity/mediaLibrary/index" b-href="true"><i class="icon icon-circle-blank"></i> 媒体库</a></li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="javascript:;">
                        <i class="icon icon-flag"></i>
                        <span>厕所管理</span>
                        <span class="pull-right-container">
                                <i class="icon icon-angle-left"></i>
                            </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="/admin/toilet/index" b-href="true"><i class="icon icon-circle-blank"></i> 采集厕所</a></li>
                        <li><a href="/admin/toilet/map" b-href="true"><i class="icon icon-circle-blank"></i> 厕所地图</a></li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="javascript:;">
                        <i class="icon icon-wrench"></i>
                        <span>系统管理</span>
                        <span class="pull-right-container">
							<i class="icon icon-angle-left"></i>
						</span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="/admin/log/index" b-href="true"><i class="icon icon-circle-blank"></i> 登陆日志</a></li>
                        <li><a href="/admin/resource/index" b-href="true"><i class="icon icon-circle-blank"></i> 资源管理</a></li>
                        <li><a href="/admin/role/index" b-href="true"><i class="icon icon-circle-blank"></i> 角色管理</a></li>
                        <li><a href="/admin/user/index" b-href="true"><i class="icon icon-circle-blank"></i> 用户管理</a></li>
                    </ul>
                </li>



            </ul>
        </section>
    </aside>
    <div class="content-wrapper">
        <div class="content-header">
            <ul class="breadcrumb">
                <li><a href="#"><i class="icon icon-home"></i></a></li>
                <li class="active">仪表盘</li>
            </ul>
        </div>
        <div class="content-body"></div>
    </div>
    <div id="common-tools">
        <a href="#" id="common-tools-tag-a" b-href="true"></a>
    </div>
</div>

<!-- zui js -->
<script src="/static/dist/js/zui.js"></script>
<!-- app js -->
<script src="/static/js/app.js"></script>
<script src="/static/js/BHref.js"></script>
<script type="application/javascript">
    $(function () {
        /* 使用触发器对象直接显示 */
        var loadingObj = (new $.zui.ModalTrigger({showHeader: false}));
        loadingObj.show();
        $('.content-body').load('./admin/indexBoard', function (response,status,xhr) {
            //"success", "notmodified", "error", "timeout" 或 "parsererror"
            if(status == "success" && xhr.status == 200 && xhr.readyState == 4) {//成功响应:返回有内容
                loadingObj.close();
            } else if(status == "notmodified" && xhr.status == 200 && xhr.readyState == 4) {//成功响应:未修改
                loadingObj.close();
            } else if(status == "error" && xhr.status == 200 && xhr.readyState == 4) {// 响应错误
                console.log(response);
                console.log(status);
                console.log(xhr);
                loadingObj.close();
            } else if(status == "timeout" && xhr.status == 200 && xhr.readyState == 4) {// 响应超时
                console.log(response);
                console.log(status);
                console.log(xhr);
                loadingObj.close();
            } else if(status == "parsererror" && xhr.status == 200 && xhr.readyState == 4) {// 分析器错误
                console.log(response);
                console.log(status);
                console.log(xhr);
                loadingObj.close();
            } else{ // 未知
                console.log(response);
                console.log(status);
                console.log(xhr);
                $(this).html(response);
                loadingObj.close();
            }


        });
    });
</script>
</body>
</html>